<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="add_po_lines_form" model="ir.ui.view">
			<field name="name">add_po_lines_form</field>
			<field name="model">purchase.order.line</field>
			<field name="arch" type="xml">
				<form string="Purchase Order Line">
					<sheet>
						<div class="oe_right oe_button_box" name="buttons">
	                        <button type="object"
	                            name="confirm_add_line"
	                            class="oe_stat_button"
	                            icon="fa-sign-in"
	                            string="Confirm Add">
	                        </button>
                    	</div>
						<group>
							<group>
								<field name="pricelist_id_parent" invisible="1"/>
								<field name="partner_id_parent" invisible="1"/>
								<field name="date_order_parent" invisible="1"/>
								<field name="fiscal_position_id_parent" invisible="1"/>
								<field name="state_parent" invisible="1"/>
                                <field name="product_id" on_change="onchange_product_id(pricelist_id_parent,product_id,0,False,partner_id_parent,date_order_parent,fiscal_position_id_parent,date_planned,name,False,'draft',context)"/>
                                <label for="product_qty"/>
                                <div>
                                    <field name="product_qty" on_change="onchange_product_id(pricelist_id_parent,product_id,product_qty,product_uom,partner_id_parent,date_order_parent,fiscal_position_id_parent,date_planned,name,False,'draft',context)" class="oe_inline"/>
                                    <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(pricelist_id_parent,product_id,product_qty,product_uom,partner_id_parent, date_order_parent,fiscal_position_id_parent,date_planned,name,False,'draft',context)" class="oe_inline"/>
                                </div>
                                <field name="price_unit"/>
                            </group>
                            <group>
                                <field name="taxes_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
                                <field name="date_planned" widget="date"/>
                                <field name="account_analytic_id" colspan="2" groups="purchase.group_analytic_accounting"/>
                                <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
                            </group>
						</group>
						<notebook>
                        <page string="Notes">
                            <field name="name"/>
                        </page>
                        </notebook>
					</sheet>
					
                </form>
			</field>
		</record>

		<record id="act_add_lines_po" model="ir.actions.act_window">
			<field name="name">Add PO Lines</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">purchase.order.line</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="view_id" ref="add_po_lines_form"/>
			<field name="target">new</field>
			<field name="multi">True</field>
		</record>

	</data>
</openerp>
